<template>
  <div class="container-header">
    <div class="brand">
      <img style="width: 32px" src="../assets/logo.png" alt="logo"/>
      <span class="logo-text">剑网三助手 · 生活技能收益计算器</span>
    </div>
    <nav class="nav">
      <template v-for="item in skills">
        <router-link class="nav-item" :to="'/income/'+item.value">{{item.label}}</router-link>
      </template>
    </nav>
  </div>

</template>

<script setup lang="ts">
import {skills} from "../data";
</script>

<style scoped>
.container-header{
  height: 60px;
  background-color: #354F5F;
  border-bottom: 1px solid #71969a4f;
  border-bottom: none;
  justify-content: space-between;
  display: flex;
  gap: 20px;
  align-items: center;
}
.brand{
  display: flex;
  align-items: center;
}
.brand .logo-text{
  margin-left: 8px;
  font-size: 18px;
  color: #AED9E0;
}
.nav{
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
}
.nav-item{
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  color: #AED9E0;
  padding: 0 24px;
  height: 40px;
  display: inherit;
  align-items: center;
  border-radius: 40px;
  border: 1px solid transparent;
}
.nav-item.router-link-active,
.nav-item:hover{
  color: #fff;
  transition: all 0.3s ease;
  background-image: linear-gradient(to bottom, #354F5F,#698a9b63);
  background-size: cover;
  cursor: pointer;
  border: 1px solid #71969a4f;
}
</style>